﻿using UnityEngine;

namespace KuiHuaBaoDian.Services.UGUI {

    public interface IUIViewOverrideSorting {

        int Layer { get; }

        short OrderOffset { get; }
    }

    [Implement(typeof(IUIViewOverrideSorting))]
    [DisallowMultipleComponent]
    public abstract class KHBD_UIViewOverrideSorting : MonoBehaviour, IUIViewOverrideSorting {

        protected KHBD_UIViewOverrideSorting() : base() { }

        [SerializeField]
        private int m_Layer = -1;
        public int Layer => m_Layer;

        [SerializeField]
        private short m_OrderOffset;
        public short OrderOffset => m_OrderOffset;
    }
}
